import instance from "./request";
//获取列表
const getUserList = (data) => {
  return instance({
    url: "/user/list",
    params: data,
  });
};
const setUserStatus = (data) => {
  return instance({
    url: "/user/status",
    method: "post",
    data,
  });
};
const delUser = (data) => {
  return instance({
    url: "/user/remove",
    method: "post",
    data,
  });
};
const addUser = (data) => {
  return instance({
    url: "/user/add",
    method: "post",
    data,
  });
};
const editUser = (data) => {
  return instance({
    url: "/user/edit",
    method: "post",
    data,
  });
};

export { getUserList, setUserStatus, delUser, editUser, addUser };
